<?php 
global $base_url;
$path_tema = path_to_theme();
$dados = $view->result; 
?>

<div class="blog-list-news" style="background-color: #F3F3F3;">
    <div class="container">
        <div class="row">
            <div class="col-md-12">

                    <div class="center-block">
                        <a href="<?= $base_url ?>/blog">
                            <img src="<?php print $base_url ."/". $path_tema?>/images/tt-ultimas-blog.jpg" alt="">
                        </a>
                    </div>
                    
                    <?php 
                        foreach ($dados as $value):
                            
                            $titulo = $value->node_title;
                            $img_uri= $value->field_field_image[0]['rendered']['#item']['uri'];
                            $img_url = image_style_url('255_134',$img_uri);
                            
                            $timestamp  = $value->node_created;
                            $data       = format_date($timestamp, 'chamadas_blogs');
                            
                            $nid = $value->nid;
                            $strUrl = drupal_get_path_alias('node/'.$nid);
                            
                    ?>

                    <div class="col-md-3">
                                    <div class="post">
                                        <a href="<?= $base_url ?>/<?php print $strUrl;?>">
                                            <div class="post-date"> <?php print $data;?> </div>
                                            <img src="<?php print $img_url;?>" alt="">
                                            <div class="post-information"><?php print $titulo;?></div>
                                        </a>
                                    </div>
                    </div>
                    
                    <?php  endforeach; ?>

            </div>
        </div>
    </div>
</div>